package beans;

public class User {
    private int userId;
    private String userName;
    private String userPassword;
    private String userAffiliation;
    private String userRole;
    private String userEmail;
    private String userCode;
    private String companyId;
    public User() {
    }

    public User(int id, String name) {
        this.userId = id;
        this.userName = name;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserAffiliation() {
        return userAffiliation;
    }

    public void setUserAffiliation(String userAffiliation) {
        this.userAffiliation = userAffiliation;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserCode() { return userCode; }

    public void setUserCode(String userCode) { this.userCode = userCode; }
    @Override
    public String toString() {
        return "User{" +
                "id=" + userId +
                ", name='" + userName  +
                ", password=" + userPassword +
                ",affiliation="+userAffiliation+
                ",character="+ userRole +
                ",email="+ userEmail +
                ",code="+ userCode +
                '}';
    }
}
